import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // **** // 系统管理 - 委外投资信息维护
  // 获取委外投资信息表格数据
  getTableData: (query) => api.post(`${config.interfaces.type5}portfolio-server/entrustedinvestment/findall`, query),
  // 获取委外投资信息详情
  getDataById: (query) => api.get(`${config.interfaces.type5}portfolio-server/entrustedinvestment/getinfoById`, query),
  // 删除委外投资信息
  deleteById: (query) => api.get(`${config.interfaces.type5}portfolio-server/entrustedinvestment/delete`, query),
  // 新增委外投资信息
  saveData: (query) => api.post(`${config.interfaces.type5}portfolio-server/entrustedinvestment/save`, query),
  // 编辑委外投资信息
  editData: (query) => api.post(`${config.interfaces.type5}portfolio-server/entrustedinvestment/edit`, query),
  // 展期
  deferDate: (query) => api.get(`${config.interfaces.type1}entrustedinvestment/saveById`, query),
  // 委外 簿记保存
  tradeBookSave: (query) => api.post(`${config.interfaces.type1}OutsourcingBusiness/save`, query),
};
